package com.zhiche.lisa.bms.dao.model.invoice;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 申请开票附件
 * </p>
 *
 * @author liuanshun
 * @since 2018-11-15
 */
@TableName("lisa_invoice_apply_accy")
public class InvoiceApplyAccy extends Model<InvoiceApplyAccy> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 申请开票主键
     */
	@TableField("head_id")
	private Long headId;
	/**
	 * 附件类型; 0-报价单附件, 1-其他辅助附件
	 */
	@TableField("accy_type")
	private Integer accyType;
    /**
     * 附件名
     */
	@TableField("file_name")
	private String fileName;
    /**
     * 附件类型
     */
	@TableField("file_type")
	private String fileType;
    /**
     * 上传时间
     */
	@TableField("file_upload_date")
	private Date fileUploadDate;
    /**
     * 文件大小
     */
	@TableField("file_size")
	private String fileSize;
    /**
     * 文件key
     */
	@TableField("file_key")
	private String fileKey;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getHeadId() {
		return headId;
	}

	public void setHeadId(Long headId) {
		this.headId = headId;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public Date getFileUploadDate() {
		return fileUploadDate;
	}

	public void setFileUploadDate(Date fileUploadDate) {
		this.fileUploadDate = fileUploadDate;
	}

	public String getFileSize() {
		return fileSize;
	}

	public void setFileSize(String fileSize) {
		this.fileSize = fileSize;
	}

	public String getFileKey() {
		return fileKey;
	}

	public void setFileKey(String fileKey) {
		this.fileKey = fileKey;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public Integer getAccyType() {
		return accyType;
	}

	public void setAccyType(Integer accyType) {
		this.accyType = accyType;
	}

	@Override
	public String toString() {
		return "InvoiceApplyAccy{" +
				"id=" + id +
				", headId=" + headId +
				", accyType=" + accyType +
				", fileName='" + fileName + '\'' +
				", fileType='" + fileType + '\'' +
				", fileUploadDate=" + fileUploadDate +
				", fileSize='" + fileSize + '\'' +
				", fileKey='" + fileKey + '\'' +
				"} " + super.toString();
	}
}
